Skip to main content

Connecting Metrics

Now that you've configured all the Metrics Sources for this Sandbox, you'll modify the default prometheus_metrics Pipeline to change a few metadata fields.

important
  1. On the Collect tab, hover over the blue plus button on the right side of the Kubernetes Metrics Source.
  2. Click the blue plus button. While holding down the mouse button, drag the connector to the Prometheus Destination and then release.
  3. In the Connection Configuration dialog, select Pipeline.
  4. The Add Pipeline to Connection dialog will appear.
  5. Click the prometheus_metrics link to open the Pipeline editor.
  6. Expand the Eval Function by clicking the number 2.
  7. Change the Value Expressions to the following:
NameValue Expression
jobjob || 'cribl'
instance__metadata.kube.node.metadata.name || host
  1. Click Save.
  2. Click the X in the top right corner to close the Pipeline editor dialog.
  3. Select the radio button to the left of the prometheus_metrics pipeline.
  4. Click Save .

Connect the Prometheus Scraper Sources

Repeat the same connection for the two Prometheus Scraper sources.

important
  1. On the Collect tab, hover over the blue plus button on the right side of the cadvisor_metrics Source.
  2. Click the blue plus button. While holding down the mouse button, drag the connector to the Prometheus Destination and then release.
  3. In the Connection Configuration dialog, select Pipeline.
  4. The Add Pipeline to Connection dialog will appear.
  5. Select the radio button to the left of the prometheus_metrics Pipeline.
  6. Click Save.

Repeat the same process for the kubelet_metrics source.

important
  1. On the Collect tab, hover over the blue plus button on the right side of the kubelet_metrics Source.
  2. Click the blue plus button. While holding down the mouse button, drag the connector to the Prometheus Destination and then release.
  3. In the Connection Configuration dialog, select Pipeline.
  4. The Add Pipeline to Connection dialog will appear.
  5. Select the radio button to the left of the prometheus_metrics Pipeline.
  6. Click Save .

Next, let's wrap up our Cribl Edge configuration!